import top.appx.helper.email.EmailHelper;
import top.appx.helper.email.EmailModel;

import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
import javax.mail.Address;
import javax.mail.Message;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;


/**
 * Created by zwyhome on 2015/6/14.
 */
public class test {
    public static void main(final String[] args) throws Exception {
        EmailModel model = new EmailModel();
        List<Address> addressList = new ArrayList<Address>();
        InternetAddress ia = new InternetAddress("726662685@qq.com");
        ia.setPersonal("测试person");
        model.setAddresss(new Address[]{ia,ia});
        model.setTitle("测试邮件标题");
        model.setContent("测试邮件内容");
        EmailHelper.sendEmail(model);
    }
}
